package me.wenlong.roomdemo.database

import android.arch.persistence.room.Dao
import android.arch.persistence.room.Insert
import android.arch.persistence.room.OnConflictStrategy
import android.arch.persistence.room.Query

/**
 *
 * 类的描述
 *
 * @author guowenlong
 * 创建时间:2018-11-11-下午11:02
 *
 */
@Dao
public interface ImageDao {

    @Query("SELECT * FROM ImageEntity")
    fun getAllImage(): List<ImageEntity>


    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun insertImage(images : List<ImageEntity>)

}